<%if(type=="warning"){%>
<div class="alert alert-warning fade in">
    <i class="icon-remove close" data-dismiss="alert"></i>
    <%=text%>
</div>
<%}else if(type=="success"){%>
<div class="alert alert-success fade in">
    <i class="icon-remove close" data-dismiss="alert"></i>
    <%=text%>
</div>
<%}else if(type=="info"){%>
<div class="alert alert-info fade in">
    <i class="icon-remove close" data-dismiss="alert"></i>
    <%=text%>
</div>
<%}else if(type=="error"){%>
<div class="alert alert-danger fade in">
    <i class="icon-remove close" data-dismiss="alert"></i>
    <%=text%>
</div>
<%}%>